package com.facefun.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.multipart.MultipartFile;

import com.facefun.Enum.StateCode;
import com.facefun.co.CartoonCo;
import com.facefun.domain.Cartoon;
import com.facefun.vo.CartoonSearchVo;

public interface CartoonService extends IService<Cartoon>{

	List<Cartoon> getRankList();
	
	CartoonCo getCartoonCoByKey(Object key);
	
	List<Cartoon> getSearchList(CartoonSearchVo vo);
	
	Map<String, Object> getCartoonList(CartoonSearchVo vo,Integer offset,Integer limit);
	
	int addCartoon(MultipartFile Img,MultipartFile Pic,Cartoon cartoon,HttpServletRequest request);
	
	int updateCartoon(MultipartFile Img,MultipartFile Pic,Cartoon cartoon,HttpServletRequest request);

	StateCode removeCartoon(Cartoon cartoon,HttpServletRequest request);
}
